<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp"%>
	<link rel="stylesheet" href="${ctx}/styles/topnavbar.css"/>
    <c:set value="1" var="num"/>
   <div id="head">
    <div class="logo">
    <div class="logo1"></div><div class="logo2" style="background-image: url('${ctx}/images/index/logo.png');background-size:100%;background-repeat: no-repeat;" ></div>
    </div>
	<div class="out">
		<div class="tp">
		<a href="${ctx}/index.jsp"><div class="home">首页</div></a>
		<a href="${ctx}/logout"><div class="Cancellation">注销</div></a>
		<p style="clear:both;"></p>
		</div>
        <p>您好，${currentName}</p>
	</div>
    <div class="nav">
    <ul class="menu">
     <li class="menu-item ">
                <a href="${ctx}/index.jsp" target="_self"><div class="circle">
                <img src='${ctx}/styles/images/top/0.png' ><p class="pmName">首　　页</p></div></a>
    </li>
    <c:if test="${pageContext.request.remoteUser != null}">
        <c:set var="activeTopMenuId" value="${not empty top?top:''}"/>
        <c:set var="activeLeftMenuId" value="${not empty left?left:''}"/>
        <c:set var="parentId" value="${not empty (parentId)?(parentId):''}"/>
        <c:forEach items="${fns:getMenuList()}" var="menu" varStatus="idxStatus">
            <c:if test="${menu.parent.id eq parentId && menu.isShow eq 1}">
                <li class="menu-item ${activeTopMenuId==menu.id?'selected':''}">
                <a href="${fn:indexOf(menu.href, '://') eq -1?ctx:''}${not empty menu.href?menu.href:'/404'}"
                target="_self"><div class="circle">
                <img src='${ctx}/styles/images/top/${num-1}.png' ><p class="pmName">${menu.name}</p></div></a>
                </li>
                <c:set value="${num+1}" var="num"/>
            </c:if>
        </c:forEach>
    </c:if>
    <p claa="clear" style="clear: both"></p>
    </ul>
    </div>
    </div>
 
    
    